package entity_model.data_types;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * Created by nuno-rafael-figueiredo on 02-07-2014.
 */
public class DataTypes {
    static final Map<String, DataType> MAP = new LinkedHashMap<>();

    public static final AlphanumericString ALPHANUMERIC_STRING = new AlphanumericString();
    public static final Boolean BOOLEAN = new Boolean();
    public static final Characters CHARACTERS = new Characters();
    public static final FloatingPointNumber FLOATING_POINT_NUMBER = new FloatingPointNumber();
    public static final Integer INTEGER = new Integer();

    public static DataType valueOf(String type) {
        return MAP.get(type);
    }
}
